package com.acdc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电能正向有功功率记录对象 electricity_meter_active_power
 * 
 * @author acdc
 * @date 2025-08-12
 */
public class ElectricityMeterActivePower extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long id;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date collectionTime;

    /** 有功功率（正向） */
    @Excel(name = "有功功率", readConverterExp = "正=向")
    private Float activePower;

    /** 电能表ID */
    //@Excel(name = "电能表ID")
    private Long electricityMeterId;

    /** 电能表 */
    @Excel(name = "电能表")
    private String electricityMeterName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCollectionTime(Date collectionTime) 
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime() 
    {
        return collectionTime;
    }

    public void setActivePower(Float activePower) 
    {
        this.activePower = activePower;
    }

    public Float getActivePower() 
    {
        return activePower;
    }

    public void setElectricityMeterId(Long electricityMeterId) 
    {
        this.electricityMeterId = electricityMeterId;
    }

    public Long getElectricityMeterId() 
    {
        return electricityMeterId;
    }

    public void setElectricityMeterName(String electricityMeterName) {
        this.electricityMeterName = electricityMeterName;
    }

    public String getElectricityMeterName() 
    {
        return electricityMeterName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("collectionTime", getCollectionTime())
            .append("activePower", getActivePower())
            .append("electricityMeterId", getElectricityMeterId())
            .append("electricityMeterName", getElectricityMeterName())
            .toString();
    }
}
